﻿using System;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Threading;

namespace IReaper
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            EventWaitHandle wait = null;
            try
            {
                if (args.Length != 2)
                    return;
                try
                {
                    wait = EventWaitHandle.OpenExisting(args[0]);
                }
                catch { }
                Application.Run(new ProgressFileDialogBase(args[1]));
            }
            catch { }
            finally
            {
                if(wait != null)
                    wait.Set();
            }
   
        }
    }
}